# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Zhukov Pavel <gelios@gmail.com>

pkgname=mp3unicode
pkgver=1.2.1
pkgrel=5
pkgdesc="A command line utility to convert ID3 tags in mp3 files between different encodings"
arch=('loong64' 'x86_64')
url="https://github.com/alonbl/mp3unicode"
license=('GPL')
depends=('taglib')
source=(https://github.com/downloads/alonbl/$pkgname/$pkgname-$pkgver.tar.bz2)
sha256sums=('375b432ce784407e74fceb055d115bf83b1bd04a83b95256171e1a36e00cfe07')

build() {
  cd "${srcdir}"/$pkgname-$pkgver

  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver

  make DESTDIR="${pkgdir}" install
}
